package com.gosophia.metadataEngine.commons;

import org.hibernate.HibernateException;
import org.hibernate.cfg.AnnotationConfiguration;
/**
 * 使用AnnotationConfiguration。configure（）方法无法传入org.dom4j.Document document参数；
 * 因为其中doConfigure（）方法为protected  所以要重新封装一下；
 * @author mayue
 */
public class AnnotationConfigurationForDom4j extends AnnotationConfiguration {
    private static final long serialVersionUID = 2684283905613760927L;

    public AnnotationConfiguration configure(org.dom4j.Document document) throws HibernateException {
        super.doConfigure(document);
        return this;
    }
}
